PHP should be in the PATH, either locally or remotely. (bug#76242).
authorVincenzo Pupillo <v.pupillo@gmail.com>
Fri, 14 Mar 2025 20:11:22 +0000 (21:11 +0100)
committerEli Zaretskii <eliz@gnu.org>
Sat, 29 Mar 2025 11:32:31 +0000 (14:32 +0300)
commit99ff59bd66cc07df40b14cb0a8acf22d440581e5
treec5b0e4caf049b7787bad92d18db4d1cd576e4f94
parent26873d5028ed8aa0e2fc56c7d6ed3b43ff976d3c
PHP should be in the PATH, either locally or remotely. (bug#76242).

* lisp/progmodes/php-ts-mode.el
(php-ts-mode-php-default-executable): Renamed from
'php-ts-mode-php-executable'.
(php-ts-mode--executable): New function that returns the absolute
filename of the PHP executable, local or remote, based on
'default-directory'.
(php-ts-mode--anchor-prev-sibling): Replaced 'when-let' with
“when-let*.”
(php-ts-mode--indent-defun): Replaced 'when-let' with
'when-let*'.
(php-ts-mode-run-php-webserver): Use the new function
(php-ts-mode-php-default-executable).
(run-php): Use the new function (php-ts-mode-php-default-executable).
lisp/progmodes/php-ts-mode.el